<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
	<th:block th:include="include :: header('选择总行')" />
</head>
<body class="gray-bg">
     <div class="container-div">
		<div class="row">
			<div class="col-sm-12 search-collapse">
				<form id="formId">
					<div class="select-list">
						<input type="hidden" name="merno" th:value="${merno}">
					</div>
				</form>
			</div>
			<div class="col-sm-12 select-table table-striped">
				<table id="bootstrap-table"></table>
			</div>
		</div>
	</div>
    <div th:include="include :: footer"></div>
    <script th:inline="javascript">
        $(function() {
			var options = {
				url: ctx + "merchantInfo/merchantInfo/selectMerRate",
				showSearch: false,
				showRefresh: false,
				showToggle: false,
				showColumns: false,
				clickToSelect:true,
				columns: [
                {
                    field : 'RATE_TYPE',
                    title : '消费类型',
					formatter: function(value, row, index) {
						if ("0"==value){
							return '<span>传统银行卡收单</span>';
						}else if("1"==value){
							return '<span>银联云闪付</span>';
						}else if("2"==value){
							return '<span>微信</span>';
						}else if("3"==value){
							return '<span>支付宝</span>';
						}else if("4"==value){
							return '<span>银联二维码</span>';
						}else{
							return '<span style="color:gray;">无</span>';
						}
					}

                },
				{
					field : 'MER_CATEGORY',
					title : '商户类别',
					formatter: function(value, row, index) {
						if ("0"==value){
							return '<span>标准类</span>';
						}else if("1"==value){
							return '<span>优惠类</span>';
						}else if("2"==value){
							return '<span>减免类</span>';
						}else if("3"==value){
							return '<span>会员类</span>';
						}else{
							return '<span style="color:gray;">无</span>';
						}
					}
				},
				{
					field : 'SETTLE_TYPE',
					title : '结算周期',
					formatter: function(value, row, index) {
						if ("0"==value){
							return '<span>D0</span>';
						}else if("1"==value){
							return '<span>T1</span>';
						}else{
							return '<span style="color:gray;">无</span>';
						}
					}
				},
				{
					field : 'CARD_TYPE',
					title : '卡类型',
					formatter: function(value, row, index) {
						if ("1"==value){
							return '<span>借记卡</span>';
						}else if("2"==value){
							return '<span>贷记卡</span>';
						}else{
							return '<span style="color:gray;">无</span>';
						}
					}
				},
				{
					field : 'ARMARK_FL',
					title : '费率',
					formatter: function(value, row, index) {
						return value=='' || value==undefined ? '<span style="color:gray;">无</span>':value;
					}
				},
				/*{
					field : 'city',
					title : 'ARMARK_FD',
					formatter: function(value, row, index) {
						return value=='' || value==undefined ? '<span style="color:gray;">无</span>':value;
					}
				},*/
				]
			};
            $.table.init(options);
        });

    </script>
</body>
</html>